package com.huabo.contract.mysql.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huabo.contract.config.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@TableName("TBL_CONTRACT_PROJECT")
@Data
@ApiModel("实体类")
@Accessors(chain = true)
public class TblContractProjectMySql {

    @TableId(value = "projectid", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer projectid;

    @TableField(value = "projectname")
    @ApiModelProperty(value = "")
    private String projectname;

    @TableField(value = "projectcode")
    @ApiModelProperty(value = "")
    private String projectcode;

    @TableField(value = "memo")
    @ApiModelProperty(value = "")
    private String memo;

    @TableField(value = "createtime")
    @ApiModelProperty(value = "")
    private Date createtime;

    @TableField(value = "STATE")
    @ApiModelProperty(value = "")
    private String STATE;

    @TableField(value = "undertakestaffid")
    @ApiModelProperty(value = "")
    private String undertakestaffid;

    @TableField(value = "undertakeorgid")
    @ApiModelProperty(value = "")
    private String undertakeorgid;

    @TableField(value = "undertakestaff")
    @ApiModelProperty(value = "", hidden = true)
    @IgnoreSwaggerParameter
    private TblStaffMySql undertakestaff;

    @TableField(value = "undertakeorg")
    @ApiModelProperty(value = "", hidden = true)
    @IgnoreSwaggerParameter
    private TblOrganizationMySql undertakeorg;

    @TableField(value = "CREATESTAFFID")
    @ApiModelProperty(value = "")
    private String createstaffid;
}
